package controller

import (
	"common/config"
	"common/helper"
	"github.com/valyala/fasthttp"
)

type PromoDepositController struct{}

func (that PromoDepositController) Config(ctx *fasthttp.RequestCtx) {

	//uid := model.GetUidFromToken(ctx)
	//if uid == "" {
	//	helper.Print(ctx, false, helper.AccessTokenExpires)
	//	return
	//}

	//ty := 2
	//TotalDeposit := myUserHelp.GetTotalDeposit(uid)
	//if TotalDeposit == 0 {
	//	ty = 1
	//}
	ty := 1
	s := config.PromoDepositConfigList(ty)

	helper.Print(ctx, true, s)
}
